package com.ybkj.daijia.server.service;

import com.ybkj.daijia.page.Page;
import com.ybkj.daijia.server.model.Order;
import com.ybkj.daijia.server.model.PhoneVisit;
import java.util.Date;

/**
 * @author Shine
 */
public interface PhoneVisitService {

    /**
     * @param end
     * @param start
     * @param driverid
     * @param end
     * @param start
     * @param name
     * @return name为null则查询出所有的信息，否则只查询出与name匹配的信息
     */
    public Page<PhoneVisit> queryAll(String params, Date start, Date end);

    public Page<PhoneVisit> queryByMember(Long id, String param);

    public Page<PhoneVisit> pageByMember(Long memberId, Integer page, Integer limit);


    /**
     * @param order
     * @param admin
     * @return
     */
    public PhoneVisit save(PhoneVisit phoneVisit, Order order);

    public PhoneVisit save(PhoneVisit phoneVisit);

    /**
     * @param id
     * @return
     */
    public PhoneVisit findOne(Long id);


    public void delete(PhoneVisit phoneVisit);

    public Page<PhoneVisit> queryAllByParams(String hfName, String khName,
        Date start, Date end);


}
